|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.engine.runtime.Scope
org.eclipse.vtp.framework.engine.runtime.Session
public class Session
Implementation of the session scope and context.
| Nested Class Summary | |
|---|---|
protected class |
Session.Context
Implementation of the generic context. |
| Field Summary | |
|---|---|
protected Session.Context |
context
The generic context implementation. |
protected Process |
process
The owner of this session. |
| Constructor Summary | |
|---|---|
Session(Process process,
ISessionDescriptor descriptor)
Creates a new Session. |
|
| Method Summary | |
|---|---|
IExecution |
createExecution(IExecutionDescriptor descriptor)
Creates a new process execution context at the current location. |
IProcess |
getProcess()
Returns the process that created this session. |
protected java.util.Collection |
getServices(java.lang.String identifier)
|
java.lang.String |
getSessionID()
Returns the ID of the session being described. |
java.lang.Object[] |
lookupAllServices(java.lang.String identifier)
Returns an array containing all the services registered under the specified identifier. |
java.lang.Object |
lookupService(java.lang.String identifier)
Looks up the service selected for the specified identifier or null if no such service exists. |
| Methods inherited from class org.eclipse.vtp.framework.engine.runtime.Scope |
|---|
getServiceInstance, lookupAllInScope, lookupInScope, registerImplicitServices |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Process process
protected final Session.Context context
| Constructor Detail |
|---|
public Session(Process process,
ISessionDescriptor descriptor)
throws java.lang.NullPointerException
process - The owner of this session.descriptor - The session descriptor.
java.lang.NullPointerException - If the supplied process is null.
java.lang.NullPointerException - If the supplied descriptor is
null.| Method Detail |
|---|
protected java.util.Collection getServices(java.lang.String identifier)
getServices in class Scopepublic java.lang.String getSessionID()
ISession
getSessionID in interface ISession
public java.lang.Object lookupService(java.lang.String identifier)
throws java.lang.NullPointerException
ISessionnull if no such service exists.
lookupService in interface ISessionidentifier - The identifier of the service to look up.
null if no such service exists.
java.lang.NullPointerException - If the supplied identifier is
null.
public java.lang.Object[] lookupAllServices(java.lang.String identifier)
throws java.lang.NullPointerException
ISession
lookupAllServices in interface ISessionidentifier - The identifier of the services to look up.
java.lang.NullPointerException - If the supplied identifier is
null.
public IExecution createExecution(IExecutionDescriptor descriptor)
throws java.lang.NullPointerException
ISession
createExecution in interface ISessiondescriptor - The descriptor of the execution to create.
java.lang.NullPointerException - If the specified descriptor is
null.public IProcess getProcess()
ISession
getProcess in interface ISession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||